import { BaseControl, BaseStyle, DiyCompType, type IDiyBase } from '@/diy/types'

export class TextStyle extends BaseStyle {
  lineHeight = '24px'
  fontFamily = '楷体'
  fontWeight = '500'
  minHeight = '20px'
  color = '#333'
  textIndent = '0'
  letterSpacing = '0'
}

class DiyText implements IDiyBase {
  id = ''

  type = DiyCompType.base

  componentFunctionName = '文字'

  componentName = 'DiyText'

  data = {
    list: [
      {
        value: '请输入内容',
        border: false
      }
    ]
  }

  style = new TextStyle()

  control = new BaseControl()
}

export default DiyText
